import request from '@/utils/request'


// 内容-删除考试
export function deleteExam(examType,indexId) {
  return request({
    url: `/exam/teacher/manager/delExam/${examType}/${indexId}`,
    method: "post",
  });
}
// 内容-新增考试   examType考试类型  indexId  左边目录层id
export function addExam(examType,indexId) {
  return request({
    url: `/exam/teacher/manager/addExam/${examType}/${indexId}`,
    method: "post",
  });
}
// 获取小组成员信息
export function groupMemberInfo(courseStuId) {
  return request({
    url: `/school/student/courseStudyManager/groupMemberInfo/${courseStuId}`,
    method: "get",
  });
}

// 通过考试Id获取小组成员成绩
export function getGroupMemberScore(examPaperId,studentId) {
  return request({
    url: `/school/student/courseStudyManager/getGroupMemberScore/${examPaperId}/${studentId}`,
    method: "get",
  });
}
// 给予重考
export function resetExam(examPaperId,studentId) {
  return request({
    url: `/school/teacher/learningInfoPage/resetExam/${examPaperId}/${studentId}`,
    method: "post",
  });
}
// 给予重考
export function resetHomework(examPaperId,studentId) {
  return request({
    url: `/school/teacher/learningInfoPage/resetHomework/${examPaperId}/${studentId}`,
    method: "post",
  });
}
